//这个是Action Createors 是redux 的方法监听用户的要干上面
import store from './store'
import {INADD} from './constant'

export const isAddAction = data => ({ type: 'INADD', data: data })

export const asynAddAction = (data,timer) => {
    return () => {
        setTimeout(() => {
            store.dispatch(isAddAction(data))
        }, timer);
    }
}